package bio.simplex;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.net.Socket;

public class AppClient {

    public static void main(String[] args) throws IOException, InterruptedException {
        try (Socket client = new Socket("localhost", 8888)) {
            try (PrintStream print = new PrintStream(client.getOutputStream())) {
                while (true) {
                    print.println(System.currentTimeMillis() + "\r\n");
                    Thread.sleep(1000);
                }
            }
        }
    }
}
